* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    color: black;
    background: white;
    width: 100%;
    font-size: 12pt;
    font-family: sans-serif;
}

body {
    color: black;
    background: white;
    width: 100%;

    display: flex;
    justify-content: center;
}

.center-wrapper {
    width: 40rem;
    max-width: 40rem;
}

header {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding-top: 0.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid blue;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
}

.site-name {
    font-size: 2rem;
    color: rgb(0, 0, 180);
}

.header-control {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0.2rem;
}

.header-control > * {
    margin-top: 0.3rem;
    white-space: nowrap;
}

.header-control > *:not(:last-child) {
    margin-right: 1rem;
}

.header-control-separator::before {
    content: "/";
    margin: 0 0.5rem;
}

.content-wrapper {
    padding: 0 1rem;
    padding-bottom: 5rem;
}

.post-list {
    display: flex;
    flex-direction: column;
}

.post-list-item {
    display: flex;
    border-bottom: 1px dashed #AAA;
    align-items: baseline;
}

.post-list-item:hover {
    border-bottom-style: solid;
    background: rgba(0, 0, 0, 0.05);
}

.post-list-item-title {
    font-family: monospace;
    padding: 0.8rem 0.5rem;
    padding-bottom: 0.4rem;
    flex: 1;
}

.post-list-item-author {
    font-family: monospace;
}

.post-list-item-author::before {
    content: "作者：";
    font-size: 0.7rem;
}

pre {
    margin: 0.3rem;
    padding: 0.3rem;
    border: 1px solid rgba(0, 0, 255, 0.2);
    border-radius: 0.1rem;
    color: rgb(0, 0, 100);
    background: rgba(0, 0, 255, 0.05);
    overflow-x: auto;
}

.error-title {
    color: rgb(255, 0, 160);
    font-size: 1.5rem;
    margin: 0.5rem;
}

.post-title {
    font-family: monospace;
    font-size: 1.5rem;
    color: rgb(255, 128, 0);
}

.post-author {
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.5);
}

.post-author::before {
    content: "作者：";
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.5);
    margin-left: 0.5rem;
}

.post-body {
    margin: 1rem;
    font-family: monospace;
    min-height: 10rem;
}

a {
    text-decoration: none;
    color: inherit;
}

a:not(.block):not(.disabled):hover {
    text-decoration: underline;
}

a.disabled {
    text-shadow: 0.02rem 0.02rem 0.01rem white, 0 0 0 black;
    color: rgba(170, 170, 170, 0.5);
    cursor: not-allowed;
}

.block {
    display: block;
}

.not-exist {
    text-align: center;
    text-shadow: 0.02rem 0.02rem 0.01rem white, 0 0 0 black;
    color: rgba(170, 170, 170, 0.5);
}

.comment-list {
    display: flex;
    flex-direction: column;
    margin-top: 0.5rem;
    border-top: 1px dashed rgba(0,0,255,0.3);
    padding: 0.2rem;
}

.card {
    display: flex;
    flex-direction: column;
    margin-top: 0.3rem;
    margin-bottom: 0.2rem;
    background: rgba(0, 0, 255, 0.05);
    border: 1px solid rgba(0, 0, 255, 0.3);
}

.card,
.card * {
    transition: all ease-out 0.1s;
}

.card-header {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.8rem;
    justify-content: space-between;
}

.card-header > .card-title {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.2rem 0.5rem;
    background: rgba(0, 0, 255, 0.3);
}

.card-header > .card-controls {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    align-items: center;
}

.card-header > .card-controls > * {
    margin: 0.2rem 0.3rem;
    white-space: nowrap;
}

.card-body {
    border-left: 4px solid rgba(0, 0, 255, 0.3);
    padding: 0.3rem;
    font-family: monospace;
}

.card:hover {
    border-color: rgba(0, 0, 255, 0.6);
    background: rgba(0, 0, 255, 0.1);
}

.card:hover .card-title {
    background: rgba(0, 0, 255, 0.6);
}

.card:hover .card-body {
    border-left-color: rgba(0, 0, 255, 0.6);
}

.pager {
    display: flex;
    justify-content: space-between;
    margin: 0.3rem;
}

.icon-label {
    margin-left: 0.3em;
}


form {
    display: flex;
    flex-direction: column;
}

form > * {
    min-height: 2rem;
    margin: 0.2rem 0.5rem;
}

form > .form-controls {
    display: flex;
    justify-content: stretch;
    align-items: center;
}

form > .form-controls > a {
    margin-right: 1rem;
}

form > .form-controls > .form-error {
    flex: 1;
    margin-right: 1rem;
    color: red;
}

form > .form-controls > button {
    font-size: 1rem;
    padding: 0.5rem;
    outline: none;
    border: none;
    color: rgba(0, 0, 255, 0.9);
    background: transparent;
    cursor: pointer;
    transition: all ease-out 0.1s;
}

form > .form-controls > button:hover {
    background: rgba(0, 0, 255, 0.1);
}

form > .form-controls > button:focus:not(:hover),
form > .form-controls > button:active {
    background: rgba(0, 0, 255, 0.05);
}

input,
textarea {
    outline: none;
    color: black;
    background: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    border: 1px solid #AAA;
    padding: 0.4rem;

    transition: all ease-out 0.1s;
}

input:focus,
textarea:focus {
    border: 1px solid blue;
    border-left-width: 4px;
    padding-left: 1rem;
}

textarea {
    resize: vertical;
}

.error-message {
    color: red;
    margin: 0.5rem;
    margin-top: 1rem;
}

